﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmoneyWeiXinEntity;
using EmoneyWeiXinDAL;
using System.Data;
using EmoneyWeiXinCommon;
namespace EmoneyWeiXinBLL
{
    public class UserLabelManagerBLL
    {
        public static List<UserLabelManagerEntity> getUserLabelManagerList(int pindex, int psize, int weixinid, out int total)
        {
            return UserLabelManagerDal.getUserLabelManagerList(pindex, psize, weixinid, out  total);
        }
        public static List<UserLabelManagerEntity> getUserLabelManagerList(int weixinid)
        {
            return UserLabelManagerDal.getUserLabelManagerList(weixinid);
        }
        public static UserLabelManagerEntity getUserLabelManagerListByID(int id)
        {
            var list= UserLabelManagerDal.getUserLabelManagerListByID(id);
            if (list != null && list.Count > 0)
                return list[0];
            else
               return new UserLabelManagerEntity();
        }

        public static int UpdateUserLabelManager(UserLabelManagerEntity obj)
        {
            return UserLabelManagerDal.UpdateUserLabelManager(obj);
        }
        public static int DeleteUserLabelManager(int id)
        {
            return UserLabelManagerDal.DeleteUserLabelManager(id);
        }
    }
}
